#!/usr/bin/env bash
yum -y install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-devel
yum install -y gcc-c++
#sudo apt-get install libssl-dev libssh-dev libidn11-dev libpcre3-dev libgtk2.0-dev libmysqlclient-dev libpq-dev libsvn-dev firebird2.1-dev libncp-dev hydra gcc -y


#wget http://www.libssh.org/files/0.4/libssh-0.4.8.tar.gz
wget https://red.libssh.org/attachments/download/218/libssh-0.7.5.tar.xz
tar xvf libssh-0.7.5.tar.xz
cd libssh-0.7.5
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON ..
make
make install


git clone https://github.com/vanhauser-thc/thc-hydra.git
cd thc-hydra/
./configure
perl -p -i -e "s/-DLIBSVN/ /g" ./Makefile
make && make install